<?php
header('Content-Type:text/html;charset=utf-8');
require('../public/zscg.php');
require('../public/local.php');
$res=delete($con,'wenzhang',$_GET['sid']);
if($res){
    echo "<script>alert('删除成功');window.location.href='/home/myarchive.php'</script>";
}else{
    echo "<script>alert('删除失败');window.location.href='/home/myarchive.php'</script>";
}